package com.zygh.policeasset.component;

import com.zygh.policeasset.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/component/PurchaseAssetsCode.class */
public class PurchaseAssetsCode {
    @Autowired
    DepartmentService departmentService;

    public String get(String departmentNum, String getDatetime, String no) {
        StringBuffer code = new StringBuffer();
        code.append("ZD");
        code.append(departmentNum);
        code.append("0101");
        code.append(getDatetime.replaceAll("-", "").trim());
        for (int i = 1; i < 6 - no.length(); i++) {
            code.append("0");
        }
        code.append(no);
        return code.toString();
    }
}